import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/commmisson/plan/list',
    method: 'get',
    params,
  })
}

export function add(data) {
  return request({
    url: '/commmisson/plan',
    method: 'post',
    data,
  })
}

export function put(data) {
  return request({
    url: '/commmisson/plan',
    method: 'put',
    data,
  })
}

export function del(commissionPlanId) {
  return request({
    url: '/commmisson/plan/' + commissionPlanId,
    method: 'delete',
  })
}

export function detail(commissionPlanId) {
  return request({
    url: '/commmisson/plan/' + commissionPlanId,
    method: 'get',
  })
}

